﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LG.Common
{
    public class ExceptionHelper
    {
        /// <summary>
        /// 回溯异常的源头
        /// </summary>
        /// <param name="exp">最后的异常</param>
        public static void InnerException(Exception exp)
        {
            if (exp.InnerException != null)
            {
                exp = exp.InnerException;
                InnerException(exp);
            }
        }
    }
}
